package global_village.data.utils;

import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

import android.os.AsyncTask;
import android.util.Log;

public class AsyncHandleResponse extends AsyncTask<String, Void, Void>{

	private static final String TAG = AsyncHandleResponse.class.getSimpleName();
	
	@Override
	protected void onPreExecute() {

		super.onPreExecute();
	}
	
	@Override
	protected Void doInBackground(String... params) {
		String response = params[0];
		JSONArray array = null;
		
//		try {
//			array = new JSONArray(response);
//			for(int i=0; i<array.length(); i++){
//				JSONObject node = array.getJSONObject(i);
//			}
//		} catch (JSONException e) {
//			Log.e(TAG, e.toString());
//		}
		
		return null;
	}
	
	@Override
	protected void onProgressUpdate(Void... values) {

		super.onProgressUpdate(values);
	}

	@Override
	protected void onPostExecute(Void result) {

		super.onPostExecute(result);
	}
}
